package com.macro.mall.tiny.modules.oms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "用户端订单列表返回数据")
public class OrderListVO {

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "订单状态:0-询价，1-报价，2-设计，3-制作，4-配送/安装，5-结算资料对接，6-等待付款，7-已完成，8-已废弃。")
    private Integer orderStatus;

    @Schema(description = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(description = "订单商品总数量")
    private Integer totalQty;

    @Schema(description = "订单第一个商品图片")
    private String firstProductImage;
}